const router = require('koa-router')()
const Forum = require('../dbhelper/forumHelper.js')
router.prefix('/forum')

// addforum 添加新帖
router.post('/addforum', Forum.addForum)

// replyforum 添加新帖
router.post('/replyforum', Forum.replyForum)

// getForum 获取主题帖
router.post('/getForum', Forum.getForum)

// getForumReply 获取一个主题帖的回复
router.post('/getForumReply', Forum.getForumReply)

// getForumContent 获取一个贴的详情内容
router.post('/getForumContent', Forum.getForumContent)

// addFavor 添加想看
router.post('/addFavor', Forum.addFavor)

// removeFavor 移除想看
router.post('/removeFavor', Forum.removeFavor)
module.exports = router
